/*
 * Function: deleteblanks():void
 * Uses global variable str[]
 * This function removes spaces and tabs in str[]
 * Author: Sukhbir Singh 
 */

void deleteblanks(){

	cout<<"String with no blanks or tab:\n\n";

	int len=0;
	char * p = &str[0];
	char * q = &str[0];
	
	while(*q!='\0'){
		if(*p != ' ' && *p != '\t'){
			len++;
			*q=*p;
			*q++;
			
		}
		p++;

	}
	*q='\0';
	cout<<str<<"\n\n";

}
 